/*
 * XML Type:  XPageViewCommandBar
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XPageViewCommandBar
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XPageViewCommandBar(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XPageViewCommandBarImpl extends com.seedwill.xul.core.impl.XIdentifiedImpl implements com.seedwill.xul.widget.XPageViewCommandBar
{
    private static final long serialVersionUID = 1L;
    
    public XPageViewCommandBarImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TEXTPAGETOTAL$0 = 
        new javax.xml.namespace.QName("", "textPageTotal");
    private static final javax.xml.namespace.QName TEXTRSTOTAL$2 = 
        new javax.xml.namespace.QName("", "textRsTotal");
    private static final javax.xml.namespace.QName LABELPAGEINFO$4 = 
        new javax.xml.namespace.QName("", "labelPageInfo");
    private static final javax.xml.namespace.QName LABELRSINFO$6 = 
        new javax.xml.namespace.QName("", "labelRsInfo");
    private static final javax.xml.namespace.QName BUTTONFIRSTPAGE$8 = 
        new javax.xml.namespace.QName("", "buttonFirstPage");
    private static final javax.xml.namespace.QName BUTTONPREVIOUSPAGE$10 = 
        new javax.xml.namespace.QName("", "buttonPreviousPage");
    private static final javax.xml.namespace.QName BUTTONNEXTPAGE$12 = 
        new javax.xml.namespace.QName("", "buttonNextPage");
    private static final javax.xml.namespace.QName BUTTONLASTPAGE$14 = 
        new javax.xml.namespace.QName("", "buttonLastPage");
    private static final javax.xml.namespace.QName BTNPAGEGO$16 = 
        new javax.xml.namespace.QName("", "btnPagego");
    private static final javax.xml.namespace.QName SPINNERPAGENUM$18 = 
        new javax.xml.namespace.QName("", "spinnerPageNum");
    private static final javax.xml.namespace.QName LABELPAGE$20 = 
        new javax.xml.namespace.QName("", "labelPage");
    
    
    /**
     * Gets the "textPageTotal" element
     */
    public com.seedwill.xul.widget.XTextBox getTextPageTotal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XTextBox target = null;
            target = (com.seedwill.xul.widget.XTextBox)get_store().find_element_user(TEXTPAGETOTAL$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "textPageTotal" element
     */
    public boolean isSetTextPageTotal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TEXTPAGETOTAL$0) != 0;
        }
    }
    
    /**
     * Sets the "textPageTotal" element
     */
    public void setTextPageTotal(com.seedwill.xul.widget.XTextBox textPageTotal)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XTextBox target = null;
            target = (com.seedwill.xul.widget.XTextBox)get_store().find_element_user(TEXTPAGETOTAL$0, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XTextBox)get_store().add_element_user(TEXTPAGETOTAL$0);
            }
            target.set(textPageTotal);
        }
    }
    
    /**
     * Appends and returns a new empty "textPageTotal" element
     */
    public com.seedwill.xul.widget.XTextBox addNewTextPageTotal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XTextBox target = null;
            target = (com.seedwill.xul.widget.XTextBox)get_store().add_element_user(TEXTPAGETOTAL$0);
            return target;
        }
    }
    
    /**
     * Unsets the "textPageTotal" element
     */
    public void unsetTextPageTotal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TEXTPAGETOTAL$0, 0);
        }
    }
    
    /**
     * Gets the "textRsTotal" element
     */
    public com.seedwill.xul.widget.XTextBox getTextRsTotal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XTextBox target = null;
            target = (com.seedwill.xul.widget.XTextBox)get_store().find_element_user(TEXTRSTOTAL$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "textRsTotal" element
     */
    public boolean isSetTextRsTotal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TEXTRSTOTAL$2) != 0;
        }
    }
    
    /**
     * Sets the "textRsTotal" element
     */
    public void setTextRsTotal(com.seedwill.xul.widget.XTextBox textRsTotal)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XTextBox target = null;
            target = (com.seedwill.xul.widget.XTextBox)get_store().find_element_user(TEXTRSTOTAL$2, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XTextBox)get_store().add_element_user(TEXTRSTOTAL$2);
            }
            target.set(textRsTotal);
        }
    }
    
    /**
     * Appends and returns a new empty "textRsTotal" element
     */
    public com.seedwill.xul.widget.XTextBox addNewTextRsTotal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XTextBox target = null;
            target = (com.seedwill.xul.widget.XTextBox)get_store().add_element_user(TEXTRSTOTAL$2);
            return target;
        }
    }
    
    /**
     * Unsets the "textRsTotal" element
     */
    public void unsetTextRsTotal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TEXTRSTOTAL$2, 0);
        }
    }
    
    /**
     * Gets the "labelPageInfo" element
     */
    public com.seedwill.xul.widget.XLabel getLabelPageInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XLabel target = null;
            target = (com.seedwill.xul.widget.XLabel)get_store().find_element_user(LABELPAGEINFO$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "labelPageInfo" element
     */
    public boolean isSetLabelPageInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LABELPAGEINFO$4) != 0;
        }
    }
    
    /**
     * Sets the "labelPageInfo" element
     */
    public void setLabelPageInfo(com.seedwill.xul.widget.XLabel labelPageInfo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XLabel target = null;
            target = (com.seedwill.xul.widget.XLabel)get_store().find_element_user(LABELPAGEINFO$4, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XLabel)get_store().add_element_user(LABELPAGEINFO$4);
            }
            target.set(labelPageInfo);
        }
    }
    
    /**
     * Appends and returns a new empty "labelPageInfo" element
     */
    public com.seedwill.xul.widget.XLabel addNewLabelPageInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XLabel target = null;
            target = (com.seedwill.xul.widget.XLabel)get_store().add_element_user(LABELPAGEINFO$4);
            return target;
        }
    }
    
    /**
     * Unsets the "labelPageInfo" element
     */
    public void unsetLabelPageInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LABELPAGEINFO$4, 0);
        }
    }
    
    /**
     * Gets the "labelRsInfo" element
     */
    public com.seedwill.xul.widget.XLabel getLabelRsInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XLabel target = null;
            target = (com.seedwill.xul.widget.XLabel)get_store().find_element_user(LABELRSINFO$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "labelRsInfo" element
     */
    public boolean isSetLabelRsInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LABELRSINFO$6) != 0;
        }
    }
    
    /**
     * Sets the "labelRsInfo" element
     */
    public void setLabelRsInfo(com.seedwill.xul.widget.XLabel labelRsInfo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XLabel target = null;
            target = (com.seedwill.xul.widget.XLabel)get_store().find_element_user(LABELRSINFO$6, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XLabel)get_store().add_element_user(LABELRSINFO$6);
            }
            target.set(labelRsInfo);
        }
    }
    
    /**
     * Appends and returns a new empty "labelRsInfo" element
     */
    public com.seedwill.xul.widget.XLabel addNewLabelRsInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XLabel target = null;
            target = (com.seedwill.xul.widget.XLabel)get_store().add_element_user(LABELRSINFO$6);
            return target;
        }
    }
    
    /**
     * Unsets the "labelRsInfo" element
     */
    public void unsetLabelRsInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LABELRSINFO$6, 0);
        }
    }
    
    /**
     * Gets the "buttonFirstPage" element
     */
    public com.seedwill.xul.widget.XButton getButtonFirstPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BUTTONFIRSTPAGE$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "buttonFirstPage" element
     */
    public void setButtonFirstPage(com.seedwill.xul.widget.XButton buttonFirstPage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BUTTONFIRSTPAGE$8, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BUTTONFIRSTPAGE$8);
            }
            target.set(buttonFirstPage);
        }
    }
    
    /**
     * Appends and returns a new empty "buttonFirstPage" element
     */
    public com.seedwill.xul.widget.XButton addNewButtonFirstPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BUTTONFIRSTPAGE$8);
            return target;
        }
    }
    
    /**
     * Gets the "buttonPreviousPage" element
     */
    public com.seedwill.xul.widget.XButton getButtonPreviousPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BUTTONPREVIOUSPAGE$10, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "buttonPreviousPage" element
     */
    public void setButtonPreviousPage(com.seedwill.xul.widget.XButton buttonPreviousPage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BUTTONPREVIOUSPAGE$10, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BUTTONPREVIOUSPAGE$10);
            }
            target.set(buttonPreviousPage);
        }
    }
    
    /**
     * Appends and returns a new empty "buttonPreviousPage" element
     */
    public com.seedwill.xul.widget.XButton addNewButtonPreviousPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BUTTONPREVIOUSPAGE$10);
            return target;
        }
    }
    
    /**
     * Gets the "buttonNextPage" element
     */
    public com.seedwill.xul.widget.XButton getButtonNextPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BUTTONNEXTPAGE$12, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "buttonNextPage" element
     */
    public void setButtonNextPage(com.seedwill.xul.widget.XButton buttonNextPage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BUTTONNEXTPAGE$12, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BUTTONNEXTPAGE$12);
            }
            target.set(buttonNextPage);
        }
    }
    
    /**
     * Appends and returns a new empty "buttonNextPage" element
     */
    public com.seedwill.xul.widget.XButton addNewButtonNextPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BUTTONNEXTPAGE$12);
            return target;
        }
    }
    
    /**
     * Gets the "buttonLastPage" element
     */
    public com.seedwill.xul.widget.XButton getButtonLastPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BUTTONLASTPAGE$14, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "buttonLastPage" element
     */
    public void setButtonLastPage(com.seedwill.xul.widget.XButton buttonLastPage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BUTTONLASTPAGE$14, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BUTTONLASTPAGE$14);
            }
            target.set(buttonLastPage);
        }
    }
    
    /**
     * Appends and returns a new empty "buttonLastPage" element
     */
    public com.seedwill.xul.widget.XButton addNewButtonLastPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BUTTONLASTPAGE$14);
            return target;
        }
    }
    
    /**
     * Gets the "btnPagego" element
     */
    public com.seedwill.xul.widget.XButton getBtnPagego()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BTNPAGEGO$16, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "btnPagego" element
     */
    public boolean isSetBtnPagego()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BTNPAGEGO$16) != 0;
        }
    }
    
    /**
     * Sets the "btnPagego" element
     */
    public void setBtnPagego(com.seedwill.xul.widget.XButton btnPagego)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().find_element_user(BTNPAGEGO$16, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BTNPAGEGO$16);
            }
            target.set(btnPagego);
        }
    }
    
    /**
     * Appends and returns a new empty "btnPagego" element
     */
    public com.seedwill.xul.widget.XButton addNewBtnPagego()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XButton target = null;
            target = (com.seedwill.xul.widget.XButton)get_store().add_element_user(BTNPAGEGO$16);
            return target;
        }
    }
    
    /**
     * Unsets the "btnPagego" element
     */
    public void unsetBtnPagego()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BTNPAGEGO$16, 0);
        }
    }
    
    /**
     * Gets the "spinnerPageNum" element
     */
    public com.seedwill.xul.widget.XSpinner getSpinnerPageNum()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XSpinner target = null;
            target = (com.seedwill.xul.widget.XSpinner)get_store().find_element_user(SPINNERPAGENUM$18, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "spinnerPageNum" element
     */
    public boolean isSetSpinnerPageNum()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SPINNERPAGENUM$18) != 0;
        }
    }
    
    /**
     * Sets the "spinnerPageNum" element
     */
    public void setSpinnerPageNum(com.seedwill.xul.widget.XSpinner spinnerPageNum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XSpinner target = null;
            target = (com.seedwill.xul.widget.XSpinner)get_store().find_element_user(SPINNERPAGENUM$18, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XSpinner)get_store().add_element_user(SPINNERPAGENUM$18);
            }
            target.set(spinnerPageNum);
        }
    }
    
    /**
     * Appends and returns a new empty "spinnerPageNum" element
     */
    public com.seedwill.xul.widget.XSpinner addNewSpinnerPageNum()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XSpinner target = null;
            target = (com.seedwill.xul.widget.XSpinner)get_store().add_element_user(SPINNERPAGENUM$18);
            return target;
        }
    }
    
    /**
     * Unsets the "spinnerPageNum" element
     */
    public void unsetSpinnerPageNum()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SPINNERPAGENUM$18, 0);
        }
    }
    
    /**
     * Gets the "labelPage" element
     */
    public com.seedwill.xul.widget.XLabel getLabelPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XLabel target = null;
            target = (com.seedwill.xul.widget.XLabel)get_store().find_element_user(LABELPAGE$20, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "labelPage" element
     */
    public boolean isSetLabelPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LABELPAGE$20) != 0;
        }
    }
    
    /**
     * Sets the "labelPage" element
     */
    public void setLabelPage(com.seedwill.xul.widget.XLabel labelPage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XLabel target = null;
            target = (com.seedwill.xul.widget.XLabel)get_store().find_element_user(LABELPAGE$20, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XLabel)get_store().add_element_user(LABELPAGE$20);
            }
            target.set(labelPage);
        }
    }
    
    /**
     * Appends and returns a new empty "labelPage" element
     */
    public com.seedwill.xul.widget.XLabel addNewLabelPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XLabel target = null;
            target = (com.seedwill.xul.widget.XLabel)get_store().add_element_user(LABELPAGE$20);
            return target;
        }
    }
    
    /**
     * Unsets the "labelPage" element
     */
    public void unsetLabelPage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LABELPAGE$20, 0);
        }
    }
}
